<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-08-30 11:03
 *
 * Version: 2.0
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class PaymentType extends Model
{
	protected $table = "payment_type";
	protected $guarded = [];

	public function order(){
		return $this->hasMany(Order::class,'payment','id');
	}

	public function amountFlow(){
		return $this->belongsTo(AmountFlow::class, 'id','payment');
	}

	public function picture(){
		return $this->hasOne(Picture::class,'id','image');
	}
}